/********************************************************************
* Copyright (c) 2013,TGS,All rights reserved.
* fileName:	LineEntity.h	
* created:	2013/07/24 16:11

* version:	1.6
* detail: 
*********************************************************************/

#pragma once


#include "DxfEntity.h"
#include <TGS/GeoMath2.0/Point.h>
#include <utility>

class LineEntity : public DxfEntity
{
public:
	typedef TGS::GeoMath::Point Point;
public:
	LineEntity(void);
	~LineEntity(void);
public:
	void setLinePoints(const Point& startPoint, const Point& endPoint) 
	{ _startPoint = startPoint, _endPoint = endPoint;}
	std::pair<Point, Point> getLinePoints() const 
	{ return std::make_pair(_startPoint, _endPoint); } 
public:
	virtual Envelope getEnvelope() const;
	virtual void render(RenderContext* renderContext);
	virtual void traslate(const Point& point);
private:
	Point	_startPoint;
	Point	_endPoint;
};

